<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<div class="modal-dialog ms-modal-dialog">
  <div class="modal-content">

    <div class="modal-header">
      <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span
              class="sr-only">Close</span></button>
      <h4 class="modal-title">修改价格</h4>
    </div>

    <form class="form-horizontal ms-form" role="form" method="POST"
          action="${ctx.host}/reverse-orders/${reverseOrder.id}/edit-price" data-validate="true" >

        <input type="hidden" name="_method" value="PATCH"/>

      <div class="modal-body">

        <div class="form-group  ms-form-group">
          <label class="control-label col-xs-3">实际售价：</label>
          <div class="col-xs-8 pull-left role-login-name">
            <input type="number" class="form-control" name="price" placeholder="实际售价" value="${reverseOrder.prettyPrice}" tabindex="5" autocomplete="off" data-validate="required"/>
          </div>
        </div>
        <div class="form-group  ms-form-group">
          <label class="control-label col-xs-3">成本价：</label>
          <div class="col-xs-8 pull-left role-login-name">
            <input type="number" class="form-control" name="costPrice" placeholder="成本价" value="${reverseOrder.prettyCostPrice}" tabindex="5" autocomplete="off" data-validate="required"/>
          </div>
        </div>

        <div class="form-group  ms-form-group">
          <label class="control-label col-xs-3">最晚支付时间：</label>
          <div class="col-xs-8 pull-left role-login-name">
            <input type="text" class="form-control datetimepicker" name="lastPayTime" placeholder="最晚支付时间" value="<fmt:formatDate value="${reverseOrder.lastPayTime}" pattern="yyyy-MM-dd HH:mm:ss" />"  tabindex="5" autocomplete="off" data-validate="required"/>
          </div>
        </div>

      </div>

      <div class="modal-footer ms-modal-footer">
        <button type="submit" class="btn ms-btn btn-primary">确定</button>
        <button type="button" class="btn ms-btn ms-btn-gary" data-dismiss="modal">取消</button>
      </div>
    </form>

  </div>
</div>